#include "datastructure.hpp"
#include "tools.hpp"
#include <cstdio>

int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    {
        lxj::Time   t1;
        lxj::AllOne ao;
        for (auto s : {"a", "q", "c", "d", "e", "a", "c", "a", "e"}) {
            int i = random(0, 1);
            i == 0 ? ao.inc(s) : ao.dec(s);
        }
        std::printf("max-- %s\n", ao.getMaxKey().c_str());
        std::printf("min-- %s\n", ao.getMinKey().c_str());
    }

    std::puts("");
    return 0;
}